package com.jianggy.proxy.jdk2;

/**
 * @author jianggy
 * @version 1.0
 * @time 2019/11/16 18:09
 * @see
 **/
public class RealDynamicSubject implements DynamicSubject{

    @Override
    public void method1() {
        System.out.println("method1() method is running---------------");
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    @Override
    public void method2() {
        System.out.println("method2() method is running---------------");
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
